package com.suisung.shopsuite.pt.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

@Getter
@Setter
@Accessors(chain = true)
@TableName("product_history")
@ApiModel(value = "productHistory对象", description = "商品价格修改记录表")
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class ProductHistory {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品编号-SKU编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("产品编号")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty("修改之前的版本")
    @TableField("previous")
    private String previous;

    @ApiModelProperty("修改之后的版本")
    @TableField("theNext")
    private String theNext;

    @ApiModelProperty("创建人id")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建人姓名")
    @TableField("create_name")
    private String createName;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新人id")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新人姓名")
    @TableField("update_name")
    private String updateName;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("删除标志（0代表存在 1代表删除）")
    @TableField("del_flag")
    private String delFlag;

}
